//
// Created by evenvi on 18-7-16.
//ip和网络字节序转换
//

#include <stdio.h>
#include <arpa/inet.h>

void main()
{
    char* szValue1 = inet_ntoa("1.2.3.4");
    char* szValue2 = inet_ntoa("10.194.71.60");

    printf("address 1: %s\n", szValue1);
    printf("address 2: %s\n", szValue2);
}

